

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Orders Content</title>
<script language="javascript" type ="text/javascript">
    function addtToOrders(str)
    {
    var xmlhttp;
//        Possibily not required
        if (str=="")
          {
          document.getElementById("Shoppingcart").innerHTML="";
          return;
          }
            if (window.XMLHttpRequest)
              {// code for IE7+, Firefox, Chrome, Opera, Safari
                xmlhttp=new XMLHttpRequest();
              }
            else
              {// code for IE6, IE5
                xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
              }
 xmlhttp.onreadystatechange=function()
    {
      if (xmlhttp.readyState==4 && xmlhttp.status==200)
        {
            document.getElementById("Shoppingcart").innerHTML=xmlhttp.responseText;
        }
    }
    xmlhttp.open("GET","ShoppingCart.php?ProductID="+str+"&QTY=1",true);
    xmlhttp.send();
    }
</script>
</head>

<body>
    <div id="Selector">
        
  <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
  <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
  <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
  <link rel="stylesheet" href="/resources/demos/style.css" />


<script>
  $(function() {
    $( "#tabs" ).tabs();
  });
  
//  function addtToOrders(var1)
//{
//alert("I am an alert " + var1 + "box!");
//
//}
  </script>
</head>
<body>
    
    <div id="tabs">
  <ul>
      <li><a href='#tabs-0'> Beverages</a></li>
      <li><a href='#tabs-1'> Main Course</a></li>
      <li><a href='#tabs-2'> Desserts</a></li>
      <li><a href='#tabs-3'> Snacks</a></li>
      <li><a href='#tabs-4'> </a></li>      

  </ul>
       <div id='tabs-0'>     
           <input type='button' onclick ="addtToOrders('3')" value='Coca Cola'>
                                                </div> 
        <div id='tabs-1'>                                                     
            <input type='button' onclick ="addtToOrders('4')" value='Salmon Sushi'>
            <input type='button' onclick ="addtToOrders('7')" value='Tom yum soup'>
                                                </div> 
        <div id='tabs-2'>                                                    
            <input type='button' onclick ="addtToOrders('8')" value='Paddle Pop'>
                                                </div> 
        <div id='tabs-3'> </div>
        <div id='tabs-4'> </div>      
 
</div>
    </div>
    
    <div id ="Shoppingcart">
        


<table width="500" border="0">
  <tr>
    <th scope="col">Product Name</th>
    <th scope="col">qty</th>
    <th scope="col">Price each</th>
    <th scope="col">Row total</th>
    <th scope="col">Action</th>
  </tr>
 <tr><td align = "center">Coca Cola</td><td align = "center"><input type="text" name="quantity" value = "6"></td><td align = "center">10,000</td><td align = "center">60,000</td></tr><tr><td align = "center">Salmon Sushi</td><td align = "center"><input type="text" name="quantity" value = "11"></td><td align = "center">20,000</td><td align = "center">220,000</td></tr></table>
        
        
    </div>
    
        
</body>
</html>